import flet
from flet.core.app_bar import AppBar
from flet.core.colors import colors
from flet.core.page import Page

from flet测试.Sidebar import Sidebar
from flet测试.main_winods import Board


class TrelloApp(flet.Container):
    def __init__(self, page: Page):
        super().__init__()
        self.page = page
        self.bgcolor = colors.BLUE_GREY_50
        self.direction = flet.Column()

        self.appbar = AppBar()
        self.sidebar = Sidebar()
        self.board = Board()

        self.direction.append(self.appbar)
        self.direction.append(
            flet.Row(
                self.sidebar,
                self.board
            )
        )

        self.append(self.direction)
        
   